import { createContext } from 'react'
import { FormInstance } from '../interface'

const warningFunc: any = () => {}

const FormContext = createContext<FormInstance>({
	getFieldValue: warningFunc,
	dispatch: warningFunc,
	registerField: warningFunc,
	unRegisterField: warningFunc
	// resetFields: warningFunc,
	// setConfigWays: warningFunc,
	// submit: warningFunc,
	// getFieldValidate: warningFunc
})

export default FormContext
